from django.conf.urls import url

from booktest import views

urlpatterns = [
	# 通过url函数设置url路由配置项
	url(r'^index$', views.index),  # 建立/index与index()关系
	url(r'^books$', views.show_books, name='books'),
	url(r'^books/(\d+)$', views.detail),
	url(r'^books/delete/(\d+)$', views.delete, name='book_delete'),
	url(r'^books/create$', views.create),
	url(r'^login$', views.login),
	url(r'^login_check', views.login_check, name='login_check'),
	url(r'^temp_filter$', views.temp_filter),
	url(r'^temp_inherit', views.temp_inherit),
	url(r'^show_upload', views.show_upload),
	url(r'^upload_handle', views.upload_handle),
	url(r'^area$', views.area),
	url(r'^pagination/(?P<p_index>\d+)?$', views.area_pagination, name='pagination'),
	url(r'^editor', views.editor),
	url(r'^show', views.show),
	url(r'^sayhello', views.sayhello),
]
